import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import {BaseComponent} from "./base.component";
import {AboutComponent} from "./about/about.component";

const routes: Routes = [
  { path: 'basic', component: BaseComponent },
  { path: 'about', component: AboutComponent },
  { path: '', redirectTo: '/basic', pathMatch: 'full' },
  { path: '**',  redirectTo: '/basic' }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
